From 98d5cfb3082b1bf8bc5e67addc2c8b27f24132e7 Mon Sep 17 00:00:00 2001 From: Emmanuel Ackaouy Date: Thu, 25 Jan 2007 22:16:52 +0000 Subject: [PATCH] libelf: add to libxc This patch makes libelf available to the tools, by symlinking the source files and compiling them into libxc. Signed-off-by: Gerd Hoffmann --- tools/libxc/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- tools/libxc/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 03dae2992e..adebaf5b20 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -30,6 +30,21 @@ GUEST_SRCS-$(CONFIG_IA64) += xc_linux_build.c GUEST_SRCS-$(CONFIG_MIGRATE) += xc_linux_restore.c xc_linux_save.c GUEST_SRCS-$(CONFIG_HVM) += xc_hvm_build.c xc_hvm_restore.c xc_hvm_save.c +# symlink libelf from xen/common/libelf/ +LIBELF_SRCS := libelf-tools.c libelf-loader.c +LIBELF_SRCS += libelf-dominfo.c libelf-relocate.c + +libelf-tools.o: libelf-tools.c libelf-private.h +libelf-loader.o: libelf-loader.c libelf-private.h +libelf-dominfo.o: libelf-dominfo.c libelf-private.h +libelf-relocate.o: libelf-relocate.c libelf-private.h + +$(LIBELF_SRCS) libelf-private.h: + ln -s ../../xen/common/libelf/$@ $@ + +# add libelf bits to libxc +GUEST_SRCS-y += $(LIBELF_SRCS) + -include $(XEN_TARGET_ARCH)/Makefile CFLAGS += -Werror -Wmissing-prototypes -- 2.30.2